package cn.Robbery.basic.util;

import lombok.Data;

@Data
public class AjaxResult {

    private Boolean success = true;
    private String message = "操作成功";
    private String resultObj = null;

    public AjaxResult(){

    }



    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setMessage(String message){
        this.success = false;
        this.message = message;
        return this;
    }


    public AjaxResult setResultObj(String resultObj) {
        this.resultObj = resultObj;
        return this;
    }
}
